import { request } from "@/api/request";

// 获取个性推荐的轮播图
export function getBanner(){
    return request({url:'/banner',method:'get'})
}

// 获取推荐歌单
export function getSongsForm(){
    return request({url:'personalized?limit=10',method:'get'})
}

// 获取歌单详情
export function getSongDetail(songId){
    return request({url:`/playlist/detail?id=${songId}`,method:'get'})
}

// 获取歌单所有歌曲 id:歌单 id
export function getSongs(id){
    return request({url:`/playlist/track/all?id=${id}&limit=20&offset=1`,method:'get'})
}

// 获取音乐url
export function getSongsID(id){
    return request({url:`/song/url?id=${id}`,method:'get'})
}

// 获取音乐详细信息
export function getOneSongDetail(id){
    return request({url:`/song/detail?ids=${id}`,method:'get'})
}

// 获取歌词
export function getSongLyrics(id){
    return request({url:`/lyric?id=${id}`,method:'get'})
}
